//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Iverson Classic','Hampton Coliseum','Hampton, VA','Saturday','5/4/2024','7:00 PM','6323673','Iverson-Classic-5-4-2024'],['Mother's Day Celebration: Donnie McClurkin, The Clark Sisters & Ricky Dillard','Hampton Coliseum','Hampton, VA','Saturday','5/11/2024','7:00 PM','6127881','Mother-s-Day-Celebration--Donnie-McClurkin--The-Clark-Sisters---Ricky-Dillard-5-11-2024'],['Pretty Lights','Hampton Coliseum','Hampton, VA','Friday','5/31/2024','TBD','6277822','Pretty-Lights-5-31-2024'],['Pretty Lights - 2 Day Pass','Hampton Coliseum','Hampton, VA','Friday','5/31/2024','TBD','6277821','Pretty-Lights---2-Day-Pass-5-31-2024'],['Pretty Lights','Hampton Coliseum','Hampton, VA','Saturday','6/1/2024','TBD','6277823','Pretty-Lights-6-1-2024'],['Hampton Jazz & Music Festival: Kem, Ledisi & Special Efx','Hampton Coliseum','Hampton, VA','Friday','6/28/2024','7:30 PM','6339187','Hampton-Jazz---Music-Festival--Kem--Ledisi---Special-Efx-6-28-2024'],['Hampton Jazz & Music Festival: Boyz II Men, Coco Jones & Boney James','Hampton Coliseum','Hampton, VA','Saturday','6/29/2024','7:00 PM','6339136','Hampton-Jazz---Music-Festival--Boyz-II-Men--Coco-Jones---Boney-James-6-29-2024'],['Hampton Jazz & Music Festival: Jon Batiste, Brian Culbertson, October London & The Fuzz Band','Hampton Coliseum','Hampton, VA','Sunday','6/30/2024','2:00 PM','6332916','Hampton-Jazz---Music-Festival--Jon-Batiste--Brian-Culbertson--October-London---The-Fuzz-Band-6-30-2024'],['Chris Brown','Hampton Coliseum','Hampton, VA','Tuesday','7/9/2024','8:00 PM','6304681','Chris-Brown-7-9-2024'],['Ganja White Night - 2 Day Pass','Hampton Coliseum','Hampton, VA','Friday','7/12/2024','TBD','6349264','Ganja-White-Night---2-Day-Pass-7-12-2024'],['Ganja White Night','Hampton Coliseum','Hampton, VA','Friday','7/12/2024','5:00 PM','6346818','Ganja-White-Night-7-12-2024'],['Ganja White Night','Hampton Coliseum','Hampton, VA','Saturday','7/13/2024','5:00 PM','6346819','Ganja-White-Night-7-13-2024'],['Missy Elliott, Ciara, Busta Rhymes & Timbaland','Hampton Coliseum','Hampton, VA','Friday','8/2/2024','7:00 PM','6369352','Missy-Elliott--Ciara--Busta-Rhymes---Timbaland-8-2-2024'],['Maxwell','Hampton Coliseum','Hampton, VA','Friday','9/20/2024','7:30 PM','6340419','Maxwell-9-20-2024'],['Scream Tour','Hampton Coliseum','Hampton, VA','Sunday','9/10/2073','7:00 PM','5807212','Scream-Tour-9-10-2073']],'Hampton Coliseum','http://www.ticketnetwork.com/ticket/Hampton-Coliseum-events.aspx');